//
//  QConfirmOrderInforMationView.m
//  QoilPublic
//
//  Created by zhuang on 16/7/8.
//  Copyright © 2016年 杨凯. All rights reserved.
//

#import "QConfirmOrderInforMationView.h"

@interface QConfirmOrderInforMationView ()


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *oneConstrain;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *twoConstrain;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *threeConstrain;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *fourConstrain;

@property (weak, nonatomic) IBOutlet UILabel *moneyLabel;

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@property (weak, nonatomic) IBOutlet UILabel *addressLabel;

@property (weak, nonatomic) IBOutlet UILabel *telLabel;

@property (weak, nonatomic) IBOutlet UILabel *noteLabel;


@end
@implementation QConfirmOrderInforMationView

- (void)awakeFromNib{

    [super awakeFromNib];
    self.oneConstrain.constant = 0.5;
    self.twoConstrain.constant = 0.5;
    self.threeConstrain.constant = 0.5;
    self.fourConstrain.constant = 0.5;
}

- (void)setModel:(QSubmitOrderModel *)model{

    _model = model;
    self.moneyLabel.text = [NSString stringWithFormat:@"￥%@",_model.total];
    self.timeLabel.text = [NSString stringWithFormat:@"%@前",_model.serviceTime];
    self.addressLabel.text = _model.address;
    self.telLabel.text = _model.tel;
    self.noteLabel.text = _model.remark;
    
}

- (void)setLmodel:(QAllorderListModel *)lmodel{

    _lmodel = lmodel;
    
}

@end
